import request from '@/utils/request'

// 查询专利列表
export function listProject(query) {
    return request({
        url: '/system/project/list',
        method: 'get',
        params: query
    })
}
// 
export function selectTask(query) {
    return request({
        url: '/system/project/selectTask',
        method: 'get',
        params: query
    })
}
// 个人评审结果
export function selectMyScore(query) {
    return request({
        url: '/system/project/selectMyScore',
        method: 'get',
        params: query
    })
}
export function selectAllScore(query) {
    return request({
        url: '/system/project/selectAllScore',
        method: 'get',
        params: query
    })
}
// 查询专利列表
export function getAllList(query) {
    return request({
        url: '/system/project/getAllList',
        method: 'get',
        params: query
    })
}


// 查询专利详细
export function getProject(id) {
    return request({
        url: '/system/project/' + id,
        method: 'get'
    })
}

// 新增专利
export function addProject(data) {
    return request({
        url: '/system/project',
        method: 'post',
        data: data
    })
}

// 修改专利
export function updateProject(data) {
    return request({
        url: '/system/project',
        method: 'put',
        data: data
    })
}
// 评分
export function updataScore(data) {
    return request({
        url: '/system/project/updataScore',
        method: 'put',
        data: data
    })
}

// 删除专利
export function delProject(id) {
    return request({
        url: '/system/project/' + id,
        method: 'delete'
    })
}
// 查询专利列表
export function download(query) {
    return request({
        url: '/common/download/resource',
        method: 'get',
        params: query
    })
}
// 查询专利列表
export function selectProByid(id) {
    return request({
        url: '/system/project/selectProByid/' + id,
        method: 'get',
    })
}